package com.flyxiaozhu.erp.core.repositories;

import com.flyxiaozhu.erp.core.entities.ExpressCompany;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.JpaSpecificationExecutor;

import java.util.Collection;
import java.util.List;

/**
 * @author flyxiaozhu
 * @date 2019-04-27 0:09
 */
public interface ExpressCompanyRepository extends JpaRepository<ExpressCompany, Long>, JpaSpecificationExecutor<ExpressCompany> {
    ExpressCompany findByCode(String code);

    ExpressCompany findByName(String name);

    List<ExpressCompany> findByIdIn(Collection ids);
}